<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
define( "IN_CHK_CEN", 1 );
if ( !isset( $idxGametype ) )
{
    header( "Location: op.php" );
    exit();
}
$ui = new UI_3D( false, G_SITENAME );
$tpl = new Template2();
if ( $g_init_mode_6h )
{
    $default_3d_top_src = "op.php?op=centralize&fp=title&gametype=0";
    $default_3d = "op.php?op=centralize&fp=login&gametype=0";
}
else if ( $g_init_mode_3d )
{
    $default_3d_top_src = "op.php?op=centralize&fp=title_3d&gametype={$idxGametype}";
    $default_3d = "op.php?op=centralize&fp=login_3d&gametype={$idxGametype}";
}
$tpl->set( "default_3d_top_src", $default_3d_top_src );
$tpl->set( "default_3d", $default_3d );
$tpl->load( "main", "index_3d.htm" );
$ui->header();
$tpl->show( "main" );
$ui->footer();
?>